module top_sfm(
input clk_in,
input k1,
input load1,
input [7:0] sec_in,
input [7:0] min_in,
input [7:0] hour_in,

output [3:0] seg5,
output [3:0] seg4,
output [3:0] seg3,
output [3:0] seg2,
output [3:0] seg1,
output [3:0] seg0,

output clk_disp,

output clk_day
);

reg clk_min,clk_hour;
wire [7:0] count2,count1,count0;
wire clk_out;

fre_div u_fre_div(
.clk_in           (clk_in),

.clk              (clk),
.clk_disp         (clk_disp)
);

myand u_myand(
.clk_in       (clk),
.k            (k1),

.clk_out      (clk_out)
);

sfm u_sfm(
.clk          (clk_out),
.load1        (load1),//zhuang_zai_ji_shu_zhi_shang_sheng_yan
.sec_in       (sec_in),
.min_in       (min_in),
.hour_in      (hour_in),

.sec_out      (count0),
.min_out      (count1),
.hour_out     (count2),

.clk_day      (clk_day)//chuan_ru_nyr_zuo_shi_zhong

);

disp u2_disp(
.count            (count2),

.smgL             (seg4),
.smgH             (seg5)
);

disp u1_disp(
.count            (count1),

.smgL             (seg2),
.smgH             (seg3)
);

disp u0_disp(
.count            (count0),

.smgL             (seg0),
.smgH             (seg1)
);
endmodule